package cn.practice.chat.service;

import cn.practice.chat.entity.ChatList;
import cn.practice.chat.request.chat.ChatGroupRequest;
import cn.practice.chat.request.chat.ChatRequest;
import cn.practice.chat.response.chat.ChatListResponse;
import cn.practice.chat.response.user.LoginUser;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 最近聊天的人 服务类
 * </p>
 *
 * @author zhuutao
 * @since 2022-10-31
 */
public interface ChatListService extends IService<ChatList> {

    /**
     * @description 获取聊天人列表
     * @param loginUser
     * @return {@link java.util.List<cn.practice.chat.response.chat.ChatListResponse>}
     **/
    List<ChatListResponse> chatList(LoginUser loginUser);


    void createUserChat(ChatRequest chatRequest, LoginUser loginUser);



    ChatListResponse createChatGroup(ChatGroupRequest chatGroupRequest, LoginUser loginUser);

}
